
                    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
                        <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
                    </svg>
                    <blockquote> 
 <p><strong>高级的题库更新之后，专业性更强了，不是真正从事这一行的，很难做出来。本人就是个小菜鸡，有一些题，我也不想不明白。题目的答案我尽可能的找到出处，如果读者发现错误或有补充建议，欢迎评论或私信笔者。笔者这篇就当抛砖引玉，各位读者可以当作考试的一个参考</strong></p> 
</blockquote> 
<h4><a name="t0"></a><a id="HarmonyOShttpsblogcsdnnetGusha_articledetails140072321spm1001201430015502_5"></a>基础认证题库请移步：<a href="https://blog.csdn.net/Gusha_/article/details/140072321?spm=1001.2014.3001.5502">HarmonyOS应用开发者基础认证题库</a></h4> 
<hr> 
<h3><a name="t1"></a><a id="20_8"></a><code>注：有读者反馈，题库的代码块比较多，打开文章时会卡死。所以笔者将题库拆分，以20道题为一组，题库目录如下，读者可以按需跳转。如果对您的阅读产生不便，笔者在这里向大家说声抱歉，请各位读者原谅。该题库已整理完毕，笔者不再更新。笔者连续考了三次，都过了，所以答案应该没什么太大问题。有需要题库文档的可以自取。祝各位读者好运(๑¯ω¯๑)。</code></h3> 
<h2><a name="t2"></a><a id="_10"></a>序号目录：</h2> 
<ul><li>单选题<br> <a href="https://blog.csdn.net/Gusha_/article/details/140295266?spm=1001.2014.3001.5502">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 单选题序号1</a><br> <a href="https://blog.csdn.net/Gusha_/article/details/140580616?spm=1001.2014.3001.5501">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 单选题序号2</a><br> <a href="https://blog.csdn.net/Gusha_/article/details/140580633?spm=1001.2014.3001.5501">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 单选题序号3</a><br> <a href="https://blog.csdn.net/Gusha_/article/details/140617294">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 单选题序号4</a><br> <a href="https://blog.csdn.net/Gusha_/article/details/140749409?spm=1001.2014.3001.5502">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 单选题序号5</a></li><li>多选题<br> <a href="https://blog.csdn.net/Gusha_/article/details/140580653?spm=1001.2014.3001.5501">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 多选题序号1</a><br> <a href="https://blog.csdn.net/Gusha_/article/details/140580668?spm=1001.2014.3001.5501">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 多选题序号2</a><br> <a href="https://blog.csdn.net/Gusha_/article/details/140613052?spm=1001.2014.3001.5502">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 多选题序号3</a></li><li>答案纯享版<br> <a href="https://blog.csdn.net/Gusha_/article/details/140676104?spm=1001.2014.3001.5502">HarmonyOS应用开发者高级认证，Next版本发布后最新题库 - 答案纯享版</a></li></ul> 
<hr> 
<h4><a name="t3"></a><a id="httpspanbaiducoms153tDk4dVv_MmLEyzOqW9hQpwdxkgr_24"></a>题库文档链接（自取）：https://pan.baidu.com/s/153tDk4dVv_MmLEyzOqW9hQ?pwd=xkgr</h4> 
<hr> 
<h2><a name="t4"></a><a id="_28"></a>注：题目是乱序，每次考试，选项的顺序都不同</h2> 
<h3><a name="t5"></a><a id="_09_092_30"></a>多选题题库 - 序号2</h3> 
<hr> 
<p><strong>21、使用ArkUI组件复用之后，还是没有显著提升列表滑动场景的性能，属于组件复用未生效可能的原因有？(不确定，把所有选项列出)</strong></p> 
<p>​ <code>A、页面嵌套了过多自定义组件。</code></p> 
<p>​ <code>B、在aboutToReuse回调函数中更新了冗余的状态变量</code></p> 
<p>​ C、没有在aboutToReuse更新关联的<a href="https://so.csdn.net/so/search?q=%E7%8A%B6%E6%80%81%E5%8F%98%E9%87%8F&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E7%8A%B6%E6%80%81%E5%8F%98%E9%87%8F&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;状态变量\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E7%8A%B6%E6%80%81%E5%8F%98%E9%87%8F&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;状态变量\&quot;}&quot;}" data-tit="状态变量" data-pretit="状态变量">状态变量</a>数据。</p> 
<p>​ <code>D、复用的自定义组件中使用if等条件渲染语句导致结构不相同，未使用reuseld标记。</code></p> 
<hr> 
<p>22、下面关于动态import描述正确的是</p> 
<p>​ <code>A、动态导入import()是个异步接口，调用后将返回一个promise</code></p> 
<p>​ B、常量动态import也必须配置runtimeOnly选项</p> 
<p>​ <code>C、动态import根据入参是否为常量字符串分为常量动态import和变量动态import两种</code></p> 
<p>​ <code>D、HAR模块间只有变量动态import时可以进行模块解耦</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-dynamic-import-V5" rel="nofollow">动态import-应用程序包开发与使用-应用程序包基础知识-开发基础知识-基础入门 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>23、下面关于混淆规则描述正确的是</p> 
<p>​ <code>A、-disable-obfuscation：关闭所有混淆</code></p> 
<p>​ B、-enable-property-obfuscation：开启顶层作用域名称混淆</p> 
<p>​ <code>C、-enable-export-obfuscation：开启直接导入或导出的类或对象的名称和属性名混淆</code></p> 
<p>​ D、-enable-toplevel-obfuscation：开启属性混淆</p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5#%E9%85%8D%E7%BD%AE%E6%B7%B7%E6%B7%86%E8%A7%84%E5%88%99" rel="nofollow">代码混淆-ArkTS（方舟编程语言）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>24、在ArkTS中，以下代码片段正确的是</p> 
<pre data-index="0" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	A</span>
<span class="token keyword">function</span> <span class="token function">fn</span><span class="token punctuation">(</span>x<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span> <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">return</span>  <span class="token string">'value: '</span> <span class="token operator">+</span> x<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">type</span> <span class="token class-name">funcType</span> <span class="token operator">=</span> <span class="token punctuation">(</span>ns<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> func<span class="token operator">:</span> funcType <span class="token operator">=</span> fn<span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:0,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="1" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	B</span>
<span class="token keyword">function</span> <span class="token function">fn</span><span class="token punctuation">(</span>x<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span> <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">return</span> <span class="token string">'value:'</span> <span class="token operator">+</span> x<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">type</span> <span class="token class-name">funcType</span> <span class="token operator">=</span> <span class="token punctuation">(</span>ns<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> func<span class="token operator">:</span> funcType <span class="token operator">=</span> fn<span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:1,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="2" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	C</span>
<span class="token keyword">function</span> <span class="token function">fn</span><span class="token punctuation">(</span>x<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span> <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">return</span> x<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">type</span> <span class="token class-name">funcType</span> <span class="token operator">=</span> <span class="token punctuation">(</span>ns<span class="token operator">:</span> <span class="token builtin">string</span><span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> func<span class="token operator">:</span> funcType <span class="token operator">=</span> fn<span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:2,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="3" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	D</span>
<span class="token keyword">function</span> <span class="token function">fn</span><span class="token punctuation">(</span>x<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span> <span class="token punctuation">{<!-- --></span>
  <span class="token builtin">console</span><span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">'value: '</span> <span class="token operator">+</span> x<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">type</span> <span class="token class-name">funcType</span> <span class="token operator">=</span> <span class="token punctuation">(</span>ns<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> func<span class="token operator">:</span> funcType <span class="token operator">=</span> fn<span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:3,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、A</code></p> 
<p>​ <code>B、B</code></p> 
<p>​ C、C</p> 
<p>​ D、D</p> 
<hr> 
<p>25、以下代码片段哪几处违反了ArkTS语法规范。</p> 
<pre data-index="4" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token keyword">function</span> <span class="token function">foo</span><span class="token punctuation">(</span>value1<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">,</span> value2<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>

    <span class="token keyword">return</span> value1 <span class="token operator">+</span> value2<span class="token punctuation">;</span> 

<span class="token punctuation">}</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token number">2</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token number">3</span><span class="token punctuation">,</span> <span class="token number">4</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:4,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、foo();</code></p> 
<p>​ B、foo(1, 2);</p> 
<p>​ <code>C、foo(1, 2, 3);</code></p> 
<p>​ <code>D、foo(1, 2, 3, 4);</code></p> 
<hr> 
<p>26、以下关于Taskpool和Worker的描述正确的是</p> 
<p>​ <code>A、Worker的任务执行时长上限是无限制</code></p> 
<p>​ B、Worker支持取消已发起的任务</p> 
<p>​ C、TaskPool不支持线程复用</p> 
<p>​ <code>D、TaskPool支持设置任务的优先级</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/taskpool-vs-worker-V5#%E5%AE%9E%E7%8E%B0%E7%89%B9%E7%82%B9%E5%AF%B9%E6%AF%94" rel="nofollow">TaskPool和Worker的对比 (TaskPool和Worker)-使用多线程并发能力进行开发-并发-ArkTS（方舟编程语言）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>27、List组件onScrollIndex事件触发时机是</p> 
<p>​ <code>A、List组件显示区域内第一个子组件或最后一个子组件或中间位置子组件索引值变化时触发</code></p> 
<p>​ B、List组件首次加载完成时触发</p> 
<p>​ C、List组件滚动停止时触发</p> 
<p>​ <code>D、List组件列表滚动时每帧触发</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-container-list-V5#onscrollindex" rel="nofollow">List-容器组件-ArkTS组件-ArkUI（方舟UI框架）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>28、如果想让grid上的捏合手势生效，而不跟grid上的滚动手势形成冲突，. xxxx?手势接口应该怎么配置？</p> 
<pre data-index="5" class="set-code-hide prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token function">Grid</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
  <span class="token function">ForEach</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>numbers<span class="token punctuation">,</span> <span class="token punctuation">(</span>day<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">ForEach</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>numbers<span class="token punctuation">,</span> <span class="token punctuation">(</span>day<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">GridItem</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
        <span class="token function">Text</span><span class="token punctuation">(</span>day<span class="token punctuation">)</span>
          <span class="token punctuation">.</span><span class="token function">fontSize</span><span class="token punctuation">(</span><span class="token number">16</span><span class="token punctuation">)</span>
          <span class="token punctuation">.</span><span class="token function">backgroundColor</span><span class="token punctuation">(</span><span class="token number">0xF9CF93</span><span class="token punctuation">)</span>
          <span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
          <span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token number">80</span><span class="token punctuation">)</span>
          <span class="token punctuation">.</span><span class="token function">textAlign</span><span class="token punctuation">(</span>TextAlign<span class="token punctuation">.</span>Center<span class="token punctuation">)</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>day<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> day<span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>day<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> day<span class="token punctuation">)</span>
<span class="token punctuation">}</span>
<span class="token punctuation">.</span><span class="token function">columnsTemplate</span><span class="token punctuation">(</span><span class="token string">'1fr'</span><span class="token punctuation">.</span><span class="token function">repeat</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>columns<span class="token punctuation">)</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">columnsGap</span><span class="token punctuation">(</span><span class="token number">10</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">rowsGap</span><span class="token punctuation">(</span><span class="token number">10</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token string">'90%'</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">scrollBar</span><span class="token punctuation">(</span>BarState<span class="token punctuation">.</span>Off<span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">backgroundColor</span><span class="token punctuation">(</span><span class="token number">0xFAEEE0</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token function">cachedCount</span><span class="token punctuation">(</span><span class="token number">3</span><span class="token punctuation">)</span>
<span class="token comment">//	切换列数item位置重排动画</span>
<span class="token punctuation">.</span><span class="token function">animation</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span>
  duration<span class="token operator">:</span> <span class="token number">300</span><span class="token punctuation">,</span>
  curve<span class="token operator">:</span> Curve<span class="token punctuation">.</span>Smooth
<span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span>xxxx<span class="token operator">?</span><span class="token punctuation">(</span>
<span class="token function">PinchGesture</span><span class="token punctuation">(</span> <span class="token punctuation">)</span>
  <span class="token punctuation">.</span><span class="token function">onActionEnd</span><span class="token punctuation">(</span><span class="token punctuation">(</span>event<span class="token operator">:</span> GestureEvent<span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
    <span class="token builtin">console</span><span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">'end scale:'</span> <span class="token operator">+</span> event<span class="token punctuation">.</span>scale<span class="token punctuation">)</span>
    <span class="token comment">//	手指分开，减少列数以放大Item， 触发阈值可以自定义，示例为2</span>
    <span class="token keyword">if</span> <span class="token punctuation">(</span>event<span class="token punctuation">.</span>scale <span class="token operator">&gt;</span> <span class="token number">2</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token keyword">this</span><span class="token punctuation">.</span>columns<span class="token operator">--</span>
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>event<span class="token punctuation">.</span>scale <span class="token operator">&lt;</span> <span class="token number">0.6</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token keyword">this</span><span class="token punctuation">.</span>columns<span class="token operator">++</span>
    <span class="token punctuation">}</span>
    <span class="token comment">//	可以根据设备屏幕宽度设定最大和最小列数，此处以最小1列最大4列为例</span>
    <span class="token keyword">this</span><span class="token punctuation">.</span>columns <span class="token operator">=</span> Math<span class="token punctuation">.</span><span class="token function">min</span><span class="token punctuation">(</span><span class="token number">4</span><span class="token punctuation">,</span> Math<span class="token punctuation">.</span><span class="token function">max</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>columns<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    AppStorage<span class="token punctuation">.</span><span class="token function">setOrCreate</span><span class="token punctuation">(</span><span class="token string">'columnsCount'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>columns<span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li><li style="color: rgb(153, 153, 153);">24</li><li style="color: rgb(153, 153, 153);">25</li><li style="color: rgb(153, 153, 153);">26</li><li style="color: rgb(153, 153, 153);">27</li><li style="color: rgb(153, 153, 153);">28</li><li style="color: rgb(153, 153, 153);">29</li><li style="color: rgb(153, 153, 153);">30</li><li style="color: rgb(153, 153, 153);">31</li><li style="color: rgb(153, 153, 153);">32</li><li style="color: rgb(153, 153, 153);">33</li><li style="color: rgb(153, 153, 153);">34</li><li style="color: rgb(153, 153, 153);">35</li><li style="color: rgb(153, 153, 153);">36</li><li style="color: rgb(153, 153, 153);">37</li><li style="color: rgb(153, 153, 153);">38</li><li style="color: rgb(153, 153, 153);">39</li><li style="color: rgb(153, 153, 153);">40</li><li style="color: rgb(153, 153, 153);">41</li><li style="color: rgb(153, 153, 153);">42</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:5,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ A、gesture</p> 
<p>​ B、GesureGroup</p> 
<p>​ <code>C、parallelGesture</code></p> 
<p>​ <code>D、priorityGesture</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-gesture-events-binding-V5" rel="nofollow">绑定手势方法-使用手势事件-支持交互事件-UI开发 (ArkTS声明式开发范式)-ArkUI（方舟UI框架）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>29、在基于Stage模型开发的应用项目代码下，都存在一个app.json5配置文件， 用于配置应用的全局信息，以下app.json5配置文件错误的是</p> 
<pre data-index="6" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	A</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string-property property">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
    <span class="token string-property property">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>
    <span class="token string-property property">"versionName"</span> <span class="token operator">:</span> <span class="token string">"1.0.2"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>
    <span class="token comment">//	==========================	【label】字段的值需要引用</span>
    <span class="token string-property property">"label"</span><span class="token operator">:</span> <span class="token string">"app_name"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"bundleType"</span><span class="token operator">:</span> <span class="token string">"app"</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:6,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="7" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	B</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string-property property">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
    <span class="token string-property property">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>
    <span class="token string-property property">"versionName"</span><span class="token operator">:</span> <span class="token string">"1.0.2"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"label"</span><span class="token operator">:</span> <span class="token string">"$string:app_name"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"bundleType"</span><span class="token operator">:</span> <span class="token string">"app"</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:7,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="8" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	C</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string-property property">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
    <span class="token string-property property">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span> <span class="token string-property property">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>
    <span class="token comment">//	==========================	缺少字段【versionName】</span>
    <span class="token string-property property">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"label"</span><span class="token operator">:</span> <span class="token string">"$string:app_name"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"bundleType"</span><span class="token operator">:</span> <span class="token string">"app"</span><span class="token punctuation">,</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:8,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="9" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	D</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string-property property">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
    <span class="token string-property property">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>
    <span class="token string-property property">"versionName"</span><span class="token operator">:</span> <span class="token string">"1.0.2"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>
    <span class="token string-property property">"label"</span><span class="token operator">:</span> <span class="token string">"$string:app_name"</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:9,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、A</code></p> 
<p>​ B、B</p> 
<p>​ <code>C、C</code></p> 
<p>​ D、D</p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/app-configuration-file-V5#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%A0%87%E7%AD%BE" rel="nofollow">app.json5配置文件-应用配置文件（Stage模型）-开发基础知识-基础入门 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>30、使用如下的代码去启动一个ability时，哪种skills定义的组件能够被匹配到：</p> 
<pre data-index="10" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token keyword">let</span> want <span class="token operator">=</span> <span class="token punctuation">{<!-- --></span>
	<span class="token string-property property">"uri"</span><span class="token operator">:</span> <span class="token string">"https://www.test.com:8080/query/books"</span><span class="token punctuation">,</span>
	<span class="token string-property property">"type"</span><span class="token operator">:</span> <span class="token string">"text/plain"</span>
<span class="token punctuation">}</span>

context<span class="token punctuation">.</span><span class="token function">startAbility</span><span class="token punctuation">(</span>want<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token punctuation">(</span>data<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
	<span class="token builtin">console</span><span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token constant">TAG</span> <span class="token operator">+</span> <span class="token string">"startAbility success"</span><span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
	<span class="token builtin">console</span><span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token constant">TAG</span> <span class="token operator">+</span> <span class="token string">"startAbility failed."</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:10,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="11" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	A</span>
<span class="token string-property property">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
	<span class="token punctuation">{<!-- --></span>
		<span class="token string-property property">"uris"</span><span class="token operator">:</span><span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string-property property">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"host"</span><span class="token operator">:</span> <span class="token string">"Www.test.com"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"type"</span><span class="token operator">:</span> <span class="token string">"text/plain"</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:11,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="12" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	B</span>
<span class="token string-property property">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
	<span class="token punctuation">{<!-- --></span>
		<span class="token string-property property">"uris"</span><span class="token operator">:</span><span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string-property property">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"host"</span><span class="token operator">:</span> <span class="token string">"www.test.com"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"pathStartWith"</span><span class="token operator">:</span> <span class="token string">"query/books"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"type"</span> <span class="token operator">:</span> <span class="token string">"text/plain"</span>
			<span class="token punctuation">}</span>
    	<span class="token punctuation">]</span>
	<span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:12,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="13" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	C</span>
<span class="token string-property property">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token punctuation">{<!-- --></span>
		<span class="token string-property property">"uris"</span><span class="token operator">:</span><span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string-property property">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"host"</span><span class="token operator">:</span> <span class="token string">"www.test.com"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"pathStartwith"</span> <span class="token operator">:</span><span class="token string">"query/books"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"type"</span> <span class="token operator">:</span> <span class="token string">"text/*"</span>
			<span class="token punctuation">}</span>
    	<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:13,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="14" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	D</span>
<span class="token string-property property">"skills"</span><span class="token operator">:</span><span class="token punctuation">[</span>
    <span class="token punctuation">{<!-- --></span>
		<span class="token string-property property">"uris"</span><span class="token operator">:</span><span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string-property property">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
				<span class="token string-property property">"type"</span><span class="token operator">:</span> <span class="token string">"text/*"</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:14,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、A</code></p> 
<p>​ B、B</p> 
<p>​ C、C</p> 
<p>​ <code>D、D</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/explicit-implicit-want-mappings-V5#want%E5%8F%82%E6%95%B0%E7%9A%84uri%E5%92%8Ctype%E5%8C%B9%E9%85%8D%E8%A7%84%E5%88%99" rel="nofollow">显式Want与隐式Want匹配规则-信息传递载体Want-Stage模型应用组件-Stage模型开发指导-Ability Kit（程序框架服务）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>31、以下哪些方式可以实现ArkWeb同层渲染能力（）</p> 
<pre data-index="15" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	A</span>
<span class="token function">Web</span><span class="token punctuation">(</span><span class="token operator">...</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">enableNativeEmbedMode</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token comment">//.registerNativeEmbedRule("embed", "native")</span>
<span class="token operator">&lt;</span>embed id<span class="token operator">=</span><span class="token string">"view"</span> type<span class="token operator">=</span><span class="token string">"native/contents"</span> width<span class="token operator">=</span><span class="token string">"100%"</span> height<span class="token operator">=</span><span class="token string">"100%"</span> style<span class="token operator">=</span><span class="token string">"background-color:red"</span><span class="token operator">/</span><span class="token operator">&gt;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:15,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="16" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	B</span>
<span class="token function">Web</span><span class="token punctuation">(</span><span class="token operator">...</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">enableNativeEmbedMode</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">registerNativeEmbedRule</span><span class="token punctuation">(</span><span class="token string">"object"</span><span class="token punctuation">,</span> <span class="token string">"test"</span><span class="token punctuation">)</span>
<span class="token operator">&lt;</span>object id<span class="token operator">=</span><span class="token string">"view"</span> type<span class="token operator">=</span><span class="token string">"test/contents"</span> width<span class="token operator">=</span><span class="token string">"100%"</span> height<span class="token operator">=</span><span class="token string">"100%"</span> style<span class="token operator">=</span><span class="token string">"background-color:red"</span><span class="token operator">/</span><span class="token operator">&gt;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:16,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="17" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	C</span>
<span class="token function">Web</span><span class="token punctuation">(</span><span class="token operator">...</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">enableNativeEmbedMode</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token comment">//.registerNativeEmbedRule("embed", "native")</span>
<span class="token operator">&lt;</span>object id<span class="token operator">=</span><span class="token string">"view"</span> type<span class="token operator">=</span><span class="token string">"native/contents"</span> width<span class="token operator">=</span><span class="token string">"100%"</span> height<span class="token operator">=</span><span class="token string">"100%"</span> style<span class="token operator">=</span><span class="token string">"background-color:red"</span><span class="token operator">/</span><span class="token operator">&gt;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:17,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="18" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	D</span>
<span class="token function">Web</span><span class="token punctuation">(</span><span class="token operator">...</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">enableNativeEmbedMode</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">registerNativeEmbedRule</span><span class="token punctuation">(</span><span class="token string">"native"</span><span class="token punctuation">,</span> <span class="token string">"test"</span><span class="token punctuation">)</span>
<span class="token operator">&lt;</span>object id<span class="token operator">=</span><span class="token string">"view"</span> type<span class="token operator">=</span><span class="token string">"native/contents"</span> width<span class="token operator">=</span><span class="token string">"100%"</span> height<span class="token operator">=</span><span class="token string">"100%"</span> style<span class="token operator">=</span><span class="token string">"background-color:red"</span><span class="token operator">/</span><span class="token operator">&gt;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:18,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、A</code></p> 
<p>​ B、B</p> 
<p>​ C、C</p> 
<p>​ <code>D、D</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/web-same-layer-V5#%E7%BB%98%E5%88%B6xcomponentavplayer%E5%92%8Cbutton%E7%BB%84%E4%BB%B6" rel="nofollow">同层渲染绘制Video和Button组件-ArkWeb（方舟Web）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>32、用户购买商品后，你需要及时发放相关权益。但实际应用场景中，若出现<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;异常\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;异常\&quot;}&quot;}" data-tit="异常" data-pretit="异常">异常</span>将导致应用无法知道用户实际是否支付成功，从而无法及时发放权益，即出现掉单情况。为了确保权益发放，你需要在以下哪些场景检查用户是否存在己购未发货的商品：</p> 
<p>​ <code>A、createPurchase请求返回1001860051-由于已经拥有该商品，购买失败时</code></p> 
<p>​ <code>B、createPurchase请求返回1001860001-内部错误时</code></p> 
<p>​ <code>C、应用启动时</code></p> 
<p>​ D、finishPurchase请求返回1001860052-由于未拥有该商品，发货失败时</p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/iap-delivering-products-V5#section39601828172114" rel="nofollow">（必要）权益发放-购买消耗型/非消耗型商品-IAP Kit（应用内支付服务）-应用服务 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>33、ArkTS对并发编程API和能力进行了增强，以下描述正确的是</p> 
<p>​ A、单次I/O任务的开发场景中， 必须使用TaskPool进行开发。</p> 
<p>​ <code>B、CPU密集型任务场景中， 当任务不需要长时间（3分钟） 占据后台线程， 而是一个个独立的任务时，推荐使用TaskPool进行开发。</code></p> 
<p>​ <code>C、在并发API的形式上，目前主要有两种：Worker和TaskPool。</code></p> 
<p>​ D、默认情况下， Sendable数据在ArkTS并发实例间（包括主线程、TaskPool&amp;Worker工作线程）传递的行为是拷贝传递。</p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/cpu-intensive-task-development-V5" rel="nofollow">CPU密集型任务开发指导 (TaskPool和Worker)-使用多线程并发能力进行开发-并发-ArkTS（方舟编程语言）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/serialization-support-types-V5#sendable%E5%AF%B9%E8%B1%A1" rel="nofollow">TaskPool和Worker支持的序列化类型-附录-并发-ArkTS（方舟编程语言）-应用框架 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>34、ArkTS中不能使用以下哪些类型。</p> 
<p>​ <code>A、any</code></p> 
<p>​ B、union type</p> 
<p>​ C、tuple type</p> 
<p>​ <code>D、unknown</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/typescript-to-arkts-migration-guide-V5#%E4%BD%BF%E7%94%A8%E5%85%B7%E4%BD%93%E7%9A%84%E7%B1%BB%E5%9E%8B%E8%80%8C%E9%9D%9Eany%E6%88%96unknown" rel="nofollow">从TypeScript到ArkTS的适配规则-从TypeScript到ArkTS的适配指导-学习ArkTS语言-基础入门 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>35、应用开发的有些场景中，如果希望根据条件导入模块或者按需导入模块，可以使用动态导入代替静态导入，下面导入场景中适合使用动态import的是</p> 
<p>​ <code>A、当被导入的模块，在加载时并不存在，需要异步获取。</code></p> 
<p>​ <code>B、当静态导入的模块很明显的占用了大量的系统内存且被使用的可能性很低。</code></p> 
<p>​ <code>C、当被导入的模块说明符, 需要动态构建。</code></p> 
<p>​ <code>D、当静态导入的模 块很明显的降低了代码的加载速度且被使用的可能性很低,或者并不需要马上使用它。</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-dynamic-import-V5#%E6%8A%80%E6%9C%AF%E9%80%82%E7%94%A8%E5%9C%BA%E6%99%AF%E4%BB%8B%E7%BB%8D" rel="nofollow">动态import-应用程序包开发与使用-应用程序包基础知识-开发基础知识-基础入门 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>36、以下代码片段哪几个class/interface违反了ArkTS语法规范。</p> 
<pre data-index="19" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token keyword">class</span> <span class="token class-name">Person</span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>

<span class="token keyword">class</span> <span class="token class-name">Student</span> <span class="token keyword">extends</span> <span class="token class-name">Person</span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>

<span class="token keyword">class</span> <span class="token class-name">Instructor</span> <span class="token keyword">implements</span> <span class="token class-name">Person</span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>

<span class="token keyword">interface</span> <span class="token class-name">Shape</span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>

<span class="token keyword">interface</span> <span class="token class-name">Circle</span> <span class="token keyword">implements</span> <span class="token class-name">Shape</span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>

<span class="token keyword">class</span> <span class="token class-name">Square</span> <span class="token keyword">implements</span> <span class="token class-name">Shape</span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:19,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、Instructor</code></p> 
<p>​ B、Square</p> 
<p>​ <code>C、Circle</code></p> 
<p>​ D、Student</p> 
<hr> 
<p>37、下面代码符合<span class="words-blog hl-git-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.10283&quot;,&quot;extra&quot;:&quot;{\&quot;words\&quot;:\&quot;Node\&quot;}&quot;}" data-tit="Node" data-pretit="node">Node</span>-API开发规范的是</p> 
<pre data-index="20" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	A - Demo3</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo3</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
  size_t argc <span class="token operator">=</span> <span class="token number">2</span><span class="token punctuation">;</span>
  napi_value argv<span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token punctuation">{<!-- --></span>nullptr<span class="token punctuation">}</span><span class="token punctuation">;</span>

  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//业务代码</span>
  <span class="token keyword">return</span> nullptr<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:20,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="21" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">// B - Demo4</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo4</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
  size_t argc <span class="token operator">=</span> <span class="token number">5</span><span class="token punctuation">;</span>
  napi_value argv<span class="token punctuation">[</span><span class="token number">3</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token punctuation">{<!-- --></span>nullptr<span class="token punctuation">}</span><span class="token punctuation">;</span>
  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> argv<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token keyword">return</span> nullptr <span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:21,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="22" class="set-code-hide prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	C - Demo2</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo2</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
  size_t argc <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>

  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>

  <span class="token keyword">if</span> <span class="token punctuation">(</span>argc <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token keyword">return</span> nullptr<span class="token punctuation">;</span>
  <span class="token punctuation">}</span>

  napi_value<span class="token operator">*</span> argv <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">napi_value</span><span class="token punctuation">[</span>argc<span class="token punctuation">]</span><span class="token punctuation">;</span>
  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> argv<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//业务代码</span>
  <span class="token keyword">delete</span> argv<span class="token punctuation">;</span>
  <span class="token keyword">return</span> nullptr<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:22,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="23" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	D - Demo1</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo1</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
  size_t argc<span class="token punctuation">;</span>
  napi_value argv<span class="token punctuation">[</span><span class="token number">10</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token punctuation">{<!-- --></span>nullptr<span class="token punctuation">}</span><span class="token punctuation">;</span>
  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> argv<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token keyword">return</span> nullptr <span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:23,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、A</code> == Demo3</p> 
<p>​ B、B</p> 
<p>​ <code>C、C</code> == Demo2</p> 
<p>​ D、D</p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/napi-guidelines-V5" rel="nofollow">Node-API开发规范-使用Node-API实现跨语言交互-代码开发-NDK开发 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>38、ArkTS是<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;鸿蒙生态\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;鸿蒙生态\&quot;}&quot;}" data-tit="鸿蒙生态" data-pretit="鸿蒙生态">鸿蒙生态</span>的应用开发语言。下列说法正确的是</p> 
<p>​ <code>A、ArkTS在保持TypeScript （简称TS）基本语法风格的基础上，进一步通过规范强化静态检查和分析，使得在程序运行之前的开发期能检测更多错误，提升代码健壮性，并实现更好的运行性能。</code></p> 
<p>​ B、TS/JS代码支持import ArkTS代码。</p> 
<p>​ <code>C、针对JavaScript（简称JS）/TS并发能力支持有限的问题，ArkTS对并发编程API和能力进行了增强。</code></p> 
<p>​ <code>D、ArkTS提供了声明式UI范式、状态管理支持等相应的能力，让开发者可以以更简洁、更自然的方式开发应用。</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-migration-background-V5" rel="nofollow">ArkTS语法适配背景-从TypeScript到ArkTS的适配指导-学习ArkTS语言-基础入门 | 华为开发者联盟 (huawei.com)</a></p> 
<hr> 
<p>39、lmage组件以下哪些方式可显示图片？</p> 
<pre data-index="24" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	A</span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Entry</span></span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Component</span></span>
struct ImageExample <span class="token punctuation">{<!-- --></span>
  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span> space<span class="token operator">:</span> <span class="token number">10</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Image</span><span class="token punctuation">(</span><span class="token string">"https://www.example.com/xxx.png"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token number">100</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token number">100</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:24,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="25" class="set-code-show prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	B</span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Entry</span></span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Component</span></span>
struct ImageExample <span class="token punctuation">{<!-- --></span>
  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span> space<span class="token operator">:</span> <span class="token number">10</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Image</span><span class="token punctuation">(</span><span class="token function">$r</span><span class="token punctuation">(</span><span class="token string">'app.media.earth'</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token number">100</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token number">100</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:25,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="26" class="set-code-hide prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	C</span>
<span class="token keyword">import</span> image <span class="token keyword">from</span> <span class="token string">'@ohos.multimedia.image'</span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Entry</span></span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Component</span></span>
struct ImageExample <span class="token punctuation">{<!-- --></span>
  <span class="token decorator"><span class="token at operator">@</span><span class="token function">State</span></span> imagePixelMap<span class="token operator">:</span> image<span class="token punctuation">.</span>PixelMap <span class="token operator">|</span> <span class="token keyword">undefined</span> <span class="token operator">=</span> <span class="token keyword">undefined</span>

  <span class="token keyword">async</span> <span class="token function">aboutToAppear</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token keyword">this</span><span class="token punctuation">.</span>imagePixelMap <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getPixmapFromMedia</span><span class="token punctuation">(</span><span class="token function">$r</span><span class="token punctuation">(</span><span class="token string">'app.media.app_icon'</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span>

  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Image</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>imagePixelMap<span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token number">200</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token number">200</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>

  <span class="token keyword">private</span> <span class="token keyword">async</span> <span class="token function">getPixmapFromMedia</span><span class="token punctuation">(</span>resource<span class="token operator">:</span> Resource<span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token keyword">let</span> unit8Array <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token function">getContext</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">)</span><span class="token operator">?.</span>resourceManager<span class="token operator">?.</span><span class="token function">getMediaContent</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span>
      bundleName<span class="token operator">:</span> resource<span class="token punctuation">.</span>bundleName<span class="token punctuation">,</span>
      moduleName<span class="token operator">:</span> resource<span class="token punctuation">.</span>moduleName<span class="token punctuation">,</span>
      id<span class="token operator">:</span> resource<span class="token punctuation">.</span>id
    <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token keyword">let</span> imageSource <span class="token operator">=</span> image<span class="token punctuation">.</span><span class="token function">createImageSource</span><span class="token punctuation">(</span>unit8Array<span class="token punctuation">.</span>buffer<span class="token punctuation">.</span><span class="token function">slice</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span> unit8Array<span class="token punctuation">.</span>buffer<span class="token punctuation">.</span>byteLength<span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token keyword">let</span> createPixelMap<span class="token operator">:</span> image<span class="token punctuation">.</span>PixelMap <span class="token operator">=</span> <span class="token keyword">await</span> imageSource<span class="token punctuation">.</span><span class="token function">createPixelMap</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span>
      desiredPixelFormat<span class="token operator">:</span> image<span class="token punctuation">.</span>PixelMapFormat<span class="token punctuation">.</span><span class="token constant">RGBA_8888</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token keyword">await</span> imageSource<span class="token punctuation">.</span><span class="token function">release</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token keyword">return</span> createPixelMap
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li><li style="color: rgb(153, 153, 153);">24</li><li style="color: rgb(153, 153, 153);">25</li><li style="color: rgb(153, 153, 153);">26</li><li style="color: rgb(153, 153, 153);">27</li><li style="color: rgb(153, 153, 153);">28</li><li style="color: rgb(153, 153, 153);">29</li><li style="color: rgb(153, 153, 153);">30</li><li style="color: rgb(153, 153, 153);">31</li><li style="color: rgb(153, 153, 153);">32</li><li style="color: rgb(153, 153, 153);">33</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:26,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="27" class="set-code-hide prettyprint"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset;"><span class="token comment">//	D</span>
<span class="token keyword">import</span> <span class="token punctuation">{<!-- --></span> DrawableDescriptor <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@ohos.arkui.drawableDescriptor'</span>

<span class="token decorator"><span class="token at operator">@</span><span class="token function">Entry</span></span>
<span class="token decorator"><span class="token at operator">@</span><span class="token function">Component</span></span>
struct ImageExample <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">private</span> resManager <span class="token operator">=</span> <span class="token function">getContext</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span>resourceManager

  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Row</span><span class="token punctuation">(</span> <span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
        <span class="token function">Image</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>resManager<span class="token punctuation">.</span><span class="token function">getDrawableDescriptor</span><span class="token punctuation">(</span><span class="token function">$r</span><span class="token punctuation">(</span><span class="token string">'app.media.drawable'</span><span class="token punctuation">)</span><span class="token punctuation">.</span>id<span class="token punctuation">)</span> <span class="token keyword">as</span> DrawableDescriptor<span class="token punctuation">)</span><span class="token punctuation">)</span>
      <span class="token punctuation">}</span><span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token string">'50%'</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token string">'50%'</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><div class="hide-preCode-box"><span class="hide-preCode-bt" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7365&quot;}"><img class="look-more-preCode contentImg-no-view" src="https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png" alt="" title=""></span></div><ul class="pre-numbering" style="opacity: 0.556245;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:27,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code>A、A</code></p> 
<p>​ <code>B、B</code></p> 
<p>​ <code>C、C</code></p> 
<p>​ <code>D、D</code></p> 
<hr> 
<p><strong>40、HarmonyOS应用开发者小张，正在利用DevEco Studio进 行一款复杂应用的UI界面调试。小张了解到ArkUI Inspector是DevEco Studio内置的一项强大工具， 能够显著提升UI调试效率。基于ArkUI Inspector的特性描述，下列哪些描述是正确的（不确定，把所有选项列出）</strong></p> 
<p>​ <code>A、UI快照管理：支持导出应用的UI界面为快照图片，并允许这些快照被导入回ArkUI Inspector中，便于离线分析或分享讨论UI设计方案</code></p> 
<p>​ <code>B、性能监控：提供详细的UI渲染性能指标，帮助开发者识别布局瓶颈和渲染效率问题，从而优化应用性能</code></p> 
<p>​ <code>C、UI效果查看：开发者能够查看连接真机上运行的应用程序的UI显示效果，页面组件树结构，以及选中组件的属性信息</code></p> 
<p>​ <code>D、交互式组件选择：用户既可以在组件树视图中选择组件，使UI界面上对应组件高亮显示并展示其属性详情；也可以直接在UI布局显示界面上点击选择组件</code></p> 
<p><a href="https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-arkui-inspector-0000001605524877-V5" rel="nofollow">布局分析-应用/服务调试-DevEco Studio | 华为开发者联盟 (huawei.com)</a></p> 
<hr>
                